package com.usoft.sso.dal.mapper;

import com.usoft.sso.dal.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    /**
     * deleteByPrimaryKey
     * 
     * @param id
     * @return int
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * insert
     * 
     * @param record
     * @return int
     */
    int insert(User record);

    /**
     * insertSelective
     * 
     * @param record
     * @return int
     */
    int insertSelective(User record);

    /**
     * selectByPrimaryKey
     * 
     * @param id
     * @return User
     */
    User selectByPrimaryKey(Integer id);

    /**
     * updateByPrimaryKeySelective
     * 
     * @param record
     * @return int
     */
    int updateByPrimaryKeySelective(User record);

    /**
     * updateByPrimaryKey
     * 
     * @param record
     * @return int
     */
    int updateByPrimaryKey(User record);

    User findByUserCode(@Param("userCode") String userCode);
}